package com.teradyne.merlin2.ui.client.places;


import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class OrderEntryPlace extends OrderPlace {

	private String placeName;

	public OrderEntryPlace() {
		this.placeName = "";
	}

	public OrderEntryPlace(String token) {
		this.placeName = token;
	}

	public String getPlaceName() {
		return placeName;
	}

	@Prefix("!" + PlacesPrefixesConstants.ORDER_ENTRY)
	public static class Tokenizer implements PlaceTokenizer<OrderEntryPlace> {

		@Override
		public String getToken(OrderEntryPlace place) {
			return place.getPlaceName();
		}

		@Override
		public OrderEntryPlace getPlace(String token) {
			return new OrderEntryPlace(token);
		}

	}

}
